//
//  ELHomeNavView.m
//  ELProject
//
//  Created by Yuki on 2021/4/13.
//

#import "ELHomeNavView.h"
#import "ELSearchEnterView.h"
@interface ELHomeNavView ()
/**  搜索框  **/
@property (nonatomic , strong)ELSearchEnterView  *searchView;
@end
@implementation ELHomeNavView

- (void)_setupView{
    [super _setupView];
    self.backgroundColor = ColorHex(0xf3f3f3, 1);
    /**  搜索框  **/
    [self addSubview:self.searchView];
    [self.searchView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(12*Scale());
        make.height.mas_equalTo(36*Scale());
        make.bottom.mas_equalTo(-5*Scale());
        make.right.mas_equalTo(-20*Scale());
    }];
}

#pragma mark - --------- lazy  ---------
/**  搜索框  **/
- (ELSearchEnterView *)searchView{
    if (!_searchView) {
        _searchView = [[ELSearchEnterView alloc]init];
        _searchView.clipsToBounds = YES;
        _searchView.layer.cornerRadius = 18*Scale();
    }
    return _searchView;
}

@end
